package com.meet.service;

import com.meet.entity.Department;
import com.meet.entity.PageBean;
import com.meet.entity.Workers;
import com.meet.vo.WorkersVo;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author LiDianyang
 * @Date 2022/8/11 19:41
 * @PackageName:com.meet.service
 * @ClassName: WorkersService
 * @Description: TODO
 * @Version 1.0
 */
public interface WorkersService {

    public int addWorkers(Workers workers) throws SQLException;
    public int updateWorkers(Workers workers) throws SQLException;
    public int deleteWorkers(Integer id) throws SQLException;
    public int getCount() throws SQLException;
    public List<WorkersVo> getWorkersCard(int page, int number) throws SQLException;

    public Workers getWorkers(String name, String password) throws SQLException;

    public Workers getWorkers(Integer id) throws SQLException;
    /**
     * 分页
     * @param _currentPage
     * @param _rows
     * @return
     * @throws SQLException
     */
    public PageBean<WorkersVo> getAllWorkersByPage(String _currentPage, String _rows) throws SQLException;

    //------------我增加的----查询所有用户
    public List<Workers> getAllWorkers() throws SQLException;

    //曾广龙
    public WorkersVo getWorkersVo(Integer id) throws SQLException;

    public int updateWorkersphone(Workers workers) throws SQLException;
}
